package com.cz.video.website.domain.vo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.cz.video.common.vod.dto.VodPlayAuth;
import com.cz.video.website.domain.WebsiteVideo;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 电影表
 * </p>
 *
 * @author 洪圆胜
 * @since 2023-10-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("website_video")
@Schema(description="电影表")
public class WebsiteVideoVo extends WebsiteVideo implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "标签列表")
    private List<WebsiteMediaTagVo> tagList;

    @Schema(description = "分类")
    private WebsiteMediaCategoryVo categoryVo;

    @Schema(description = "播放凭证")
    private VodPlayAuth playAuth;


    @Schema(description = "是否点赞")
    @JsonProperty("is_like")
    private Boolean like;

    @Schema(description = "是否收藏")
    @JsonProperty("is_collected")
    private Boolean collected;


    @Schema(description = "上次看的位置")
    private Integer currentTime;
}
